//
//  CXHomeViewController.m
//  weico
//
//  Created by c_xie on 15-4-9.
//  Copyright (c) 2015年 c_xie. All rights reserved.
//

#import "CXHomeViewController.h"
#import "UIBarButtonItem+CX.h"
#import "CXScanTabBarController.h"

@interface CXHomeViewController ()

@end

@implementation CXHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // 添加左边按钮
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTitle:nil NorImage:@"navigationbar_friendsearch" HigImage:@"navigationbar_friendsearch_highlighted" Target:nil Action:nil];
    // 添加右边按钮
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithTitle:nil NorImage:@"navigationbar_pop" HigImage:@"navigationbar_pop_highlighted" Target:self Action:@selector(scan)];
    
}

- (void)scan
{
    UIStoryboard *sb =[UIStoryboard storyboardWithName:@"Scan" bundle:nil];
    CXScanTabBarController *tabbar = sb.instantiateInitialViewController;
    [self presentViewController:tabbar animated:YES completion:nil];
}


@end
